package com.xiaoyu.izf.enums;

/**
 * 状态码和错误信息
 */

public enum JsonReturnedEnum {

    //成功
    SUCCESS("success","{}"),
    //失败
    ERROR("error","{}"),
    ;

    private String type;
    private String message;

    JsonReturnedEnum(String type, String message) {
        this.type = type;
        this.message = message;
    }

    public String type() {
        return this.type;
    }

    public String message() {
        return this.message;
    }
}